import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
<<<<<<< HEAD
=======
import AboutView from '../views/AboutView.vue'
import SingerList from '../views/SingerList.vue'
import SingerDetail from '../views/SingerDetail.vue'
>>>>>>> c130faf (歌手热门50首歌曲)

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
<<<<<<< HEAD
=======
    path: '/singerDetail',
    name: 'singerDetail',
    component: SingerDetail
  },
  {
    path: '/singerList',
    name: 'singerList',
    component: SingerList
  },
  {
>>>>>>> c130faf (歌手热门50首歌曲)
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
<<<<<<< HEAD
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
=======
    component: AboutView
>>>>>>> c130faf (歌手热门50首歌曲)
  }
]

const router = new VueRouter({
  routes
})

export default router
